//
//  UIViewControllerHelper.h
//  YSProject
//
//  Created by 昱胜 on 2021/12/29.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIViewControllerHelper : NSObject

#pragma mark - FindCurrentShowingViewController
///获取Window当前显示的视图控制器ViewController
+ (UIViewController *)findCurrentShowingViewController;

/**
 *  获取Window当前显示的视图控制器ViewController
 *
 *  @param vc   从哪个界面开始分析
 *
 *  @return 当前显示的视图控制器ViewController
 */
+ (UIViewController *)findCurrentShowingViewControllerFrom:(UIViewController *)vc;


#pragma mark - FindBelongViewControllerForView
+ (nullable UIViewController *)findBelongViewControllerForView:(UIView *)view;


@end

NS_ASSUME_NONNULL_END
